import request from '@/utils/request'

// 查询场景业务组件分组列表
export function listScenarioBusinessComponentGroup(query) {
  return request({
    url: '/business/scenarioBusinessComponentGroup/list',
    method: 'get',
    params: query
  })
}

// 查询场景业务组件分组详细
export function getScenarioBusinessComponentGroup(id) {
  return request({
    url: '/business/scenarioBusinessComponentGroup/' + id,
    method: 'get'
  })
}

// 新增场景业务组件分组
export function addScenarioBusinessComponentGroup(data) {
  return request({
    url: '/business/scenarioBusinessComponentGroup',
    method: 'post',
    data: data
  })
}

// 修改场景业务组件分组
export function updateScenarioBusinessComponentGroup(data) {
  return request({
    url: '/business/scenarioBusinessComponentGroup',
    method: 'put',
    data: data
  })
}

// 删除场景业务组件分组
export function delScenarioBusinessComponentGroup(id) {
  return request({
    url: '/business/scenarioBusinessComponentGroup/' + id,
    method: 'delete'
  })
}
